package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.TransferAccountsZfbBatchAddDTO;
import org.jsola.hr.dto.TransferAccountsZfbBatchUpdateDTO;
import org.jsola.hr.query.TransferAccountsZfbBatchQuery;
import org.jsola.hr.vo.TransferAccountsZfbBatchListVO;
import org.jsola.hr.vo.TransferAccountsZfbBatchVO;

import java.util.List;

/**
 * 转账批次(支付宝)
 *
 * @author zhr
 */
@Api(tags = "hr-转账批次(支付宝)")
public interface ITransferAccountsZfbBatchControllerAPI {

    /**
     * 新增转账批次(支付宝)
     * @param transferAccountsZfbBatchAddDTO 转账批次(支付宝)新增实体
     * @return 转账批次(支付宝)展示对象
     */
    @ApiOperation(value = "新增转账批次(支付宝)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbBatchAddDTO", dataType = "TransferAccountsZfbBatchAddDTO", value = "新增转账批次(支付宝)", paramType = "body")
    })
    Result<TransferAccountsZfbBatchVO> save(TransferAccountsZfbBatchAddDTO transferAccountsZfbBatchAddDTO);


    /**
     * 修改转账批次(支付宝)
     * @param transferAccountsZfbBatchUpdateDTO 转账批次(支付宝)
     * @return 更新数量
     */
    @ApiOperation(value = "修改转账批次(支付宝)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbBatchUpdateDTO", dataType = "TransferAccountsZfbBatchUpdateDTO", value = "修改转账批次(支付宝)", paramType = "body")
    })
    Result<Integer> update(TransferAccountsZfbBatchUpdateDTO transferAccountsZfbBatchUpdateDTO);




    /**
     * 删除单个转账批次(支付宝)，彻底删除
     * @param transferAccountsZfbBatchId 转账批次(支付宝)id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个转账批次(支付宝)，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbBatchId", dataType = "String", value = "转账批次(支付宝)id", paramType = "path")
    })
    Result<Integer> delete(String transferAccountsZfbBatchId);


    /**
     * 批量删除转账批次(支付宝)，彻底删除
     * @param transferAccountsZfbBatchIds 转账批次(支付宝)id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除转账批次(支付宝)，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbBatchIds", dataType = "String[]", value = "转账批次(支付宝)id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] transferAccountsZfbBatchIds);


    /**
     * 根据转账批次(支付宝)id查询转账批次(支付宝)详情
     * @param transferAccountsZfbBatchId 转账批次(支付宝)id
     * @return 转账批次(支付宝)详情
     */
    @ApiOperation(value="根据转账批次(支付宝)id查询转账批次(支付宝)详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbBatchId", dataType = "String", value = "转账批次(支付宝)id", paramType = "path")
    })
    Result<TransferAccountsZfbBatchVO> findById(String transferAccountsZfbBatchId);


    /**
     * 查询转账批次(支付宝)
     * @param transferAccountsZfbBatchQuery 转账批次(支付宝)查询参数
     * @return page
     */
    @ApiOperation(value="查询转账批次(支付宝)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbBatchQuery", dataType = "TransferAccountsZfbBatchQuery", value = "转账批次(支付宝)查询参数", paramType = "query")
    })
    Result<List<TransferAccountsZfbBatchListVO>> listAll(TransferAccountsZfbBatchQuery transferAccountsZfbBatchQuery);


     /**
     * 分页查询转账批次(支付宝)
     * @param transferAccountsZfbBatchQuery 转账批次(支付宝)查询参数
     * @return page
     */
    @ApiOperation(value="分页查询转账批次(支付宝)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsZfbBatchQuery", dataType = "TransferAccountsZfbBatchQuery", value = "转账批次(支付宝)查询参数", paramType = "query")
    })
    Result<Page<TransferAccountsZfbBatchListVO>> page(TransferAccountsZfbBatchQuery transferAccountsZfbBatchQuery);


}

